package com.raymond.sgip.msg.request;

import com.raymond.client.constants.GlobalConstants;
import com.raymond.sgip.enums.CommandIdType;
import com.raymond.sgip.msg.AbstractSgipMessage;

/**
 * 状态报告和上行请求
 *
 * @author :  raymond
 * @version :  V1.0
 * @date :  2021-08-06 10:45
 */
public class DeliverRequestMessage extends AbstractSgipMessage {
    private String userNumber = null;
    private String spNumber = GlobalConstants.EMPTY_STRING;
    private short tpPid = 0;
    private short tpUdhi = 0;
    private short messageCoding;
    private int messageLength;
    private byte[] msgContentBytes = GlobalConstants.EMPTY_BYTES;
    private String reserve = GlobalConstants.EMPTY_STRING;

    public DeliverRequestMessage(int sequenceId) {
        super(sequenceId);
    }

    @Override
    public int getCommandId() {
        return CommandIdType.DELIVER_REQUEST.getCommandId();
    }

    public String getUserNumber() {
        return userNumber;
    }

    public void setUserNumber(String userNumber) {
        this.userNumber = userNumber;
    }

    public String getSpNumber() {
        return spNumber;
    }

    public void setSpNumber(String spNumber) {
        this.spNumber = spNumber;
    }

    public short getTpPid() {
        return tpPid;
    }

    public void setTpPid(short tpPid) {
        this.tpPid = tpPid;
    }

    public short getTpUdhi() {
        return tpUdhi;
    }

    public void setTpUdhi(short tpUdhi) {
        this.tpUdhi = tpUdhi;
    }

    public short getMessageCoding() {
        return messageCoding;
    }

    public void setMessageCoding(short messageCoding) {
        this.messageCoding = messageCoding;
    }

    public int getMessageLength() {
        return messageLength;
    }

    public void setMessageLength(int messageLength) {
        this.messageLength = messageLength;
    }

    public byte[] getMsgContentBytes() {
        return msgContentBytes;
    }

    public void setMsgContentBytes(byte[] msgContentBytes) {
        this.msgContentBytes = msgContentBytes;
    }

    public String getReserve() {
        return reserve;
    }

    public void setReserve(String reserve) {
        this.reserve = reserve;
    }
}
